/*
 * BeepWithTimer.c
 *
 * Created: 2013/1/13 18:00:02
 *  Author: Tater
 */ 


#include <avr/io.h>


int main(void)
{
	DDRA = (1<<PORTA5);
	PORTA = (0<<PORTA5);
	TCCR0 |= (1<<CS12)|(0<<CS11)|(1<<CS10);
	TCNT0 = 0x50;
    while(1)
    {	
		while (TIFR & (1 << TOV0))
		{
			TIFR |= (1<<TOV0);
			TCNT0 = 0x50;
			PORTA ^= (1<<PORTA5);
		}
        //TODO:: Please write your application code 
    }
}